/*
 * @Author: your name
 * @Date: 2020-11-19 14:06:25
 * @LastEditTime: 2020-11-24 10:10:41
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \ITL_MES2.0_WEB\src\api\service-module\production\barCodeRule_maintenance.js
 */
import request from '@/utils/request'

/**
 * 查询-条件查询某页条码规则数据，每页十条
 * @param getCodeRule
 */
export function getCodeRule(data) {
  return request({
    url: `md/monopy/snRules/page`,
    method: 'post',
    data
  })
}
/**
 * 新增-保存条码规则数据
 * @param saveCodeRule
 */
export function saveCodeRule(data) {
  return request({
    url: `md/monopy/snRules/save`,
    method: 'post',
    data
  })
}
/**
 * 编辑-修改条码规则数据
 * @param updateCodeRule
 */
export function updateCodeRule(data) {
  return request({
    url: `md/monopy/snRules/update`,
    method: 'post',
    data
  })
}
/**
 * 删除-删除条码规则数据
 * @param deleteCodeRule
 */
export function deleteCodeRule(data) {
  return request({
    url: `md/monopy/snRules/delete`,
    method: 'post',
    data
  })
}

